﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Newtonsoft.Json;
using Ccit.OA.MsGroup;
using System.Collections.Generic;

namespace Ccit.OA.Group
{
    public partial class group_personal_frame :Ccit.Utils.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                _hidType.Value = (Request.QueryString["type"] != "") ? Request.QueryString["type"].ToString() : "";
            }
        }
      
        #region Ajax Methods
        /// <summary>
        /// 删除节点信息
        /// </summary>
        /// <param name="addrId"></param>
        /// <param name="nodeIndex"></param>
        /// <returns></returns>
        [global::System.Web.Services.WebMethod]
        public static string DoOperate(string groupId,string UserId)
        { 
            GroupBLL BLL = new GroupBLL();
            List<string> lstResult = BLL.DoOperate(groupId, UserId, "1");
            var newObj = new { resultSign = lstResult[0], message = lstResult[1] };
            string serExpr = JavaScriptConvert.SerializeObject(newObj);
            BLL = null;
            newObj = null;
            return serExpr;
        }
        #endregion
    }
}
